<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let x = 10;
			switch (x){
				case 10:
					console.log("10分为最高分");
					break;
				case 9:
					console.log("优秀");
					break;
				case 7:
					console.log("良好");
					break;
				default://没有匹配项
					console.log("没有匹配项");
			}
			
			let x = "10";
			switch (x){
				case "10":
					console.log("10分为最高分");
					break;
				case "9":
					console.log("优秀");
					break;
				case "7":
					console.log("良好");
					break;
				default://没有匹配项
					console.log("没有匹配项");
			}
		</script>
	</body>
</html>
